package com.lanhai.mind.interfaces;
  
import com.lanhai.mind.beans.DeviceBean;
import com.lanhai.mind.dao.DeviceDao;

/**
 * 设备数据接口
 * @author zhengwei
 *
 */
public interface IDevice {
	DeviceBean getBean(int  deviceid );
	 
	
	DeviceDao getDao(int deviceid );
	DeviceDao getDaoByDot(int dotNO );
	DeviceDao getDao(String ip,int port ,int line);
	DeviceBean getBean(String ip,int port ,int line);
	
	
	IDeviceProtocol getRealDevice(String ip );

	void saveCache(DeviceBean bean);
	 
	
}
